import request from '@/utils/request'

// 查询设备维护记录列表
export function listDeviceMaintenanceLog(query) {
  return request({
    url: '/system/deviceMaintenanceLog/list',
    method: 'get',
    params: query
  })
}

// 查询设备维护记录详细
export function getDeviceMaintenanceLog(maintenanceId) {
  return request({
    url: '/system/deviceMaintenanceLog/' + maintenanceId,
    method: 'get'
  })
}

// 新增设备维护记录
export function addDeviceMaintenanceLog(data) {
  return request({
    url: '/system/deviceMaintenanceLog',
    method: 'post',
    data: data
  })
}

// 修改设备维护记录
export function updateDeviceMaintenanceLog(data) {
  return request({
    url: '/system/deviceMaintenanceLog',
    method: 'put',
    data: data
  })
}

// 删除设备维护记录
export function delDeviceMaintenanceLog(maintenanceId) {
  return request({
    url: '/system/deviceMaintenanceLog/' + maintenanceId,
    method: 'delete'
  })
}
